<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="contents">
<c:if test="${ regi eq 'y' }">
	<c:if test="${ isregi eq 'success' }">
		<div class="alert alert-success alert-dismissable">
		  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		  <strong>상영정보 등록 성공!!</strong>
		</div>
	</c:if>
	<c:if test="${ isregi eq 'fail' }">
		<div class="alert alert-danger alert-dismissable">
		  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		  <strong>상영정보 등록 실패!</strong> 상영정보를 다시한번 확인해 주세요.
		</div>
	</c:if>
</c:if>
<form id="shregi" method="post">
	<fieldset>
		<legend>상영 정보 등록</legend>
		<div id="center">
			<div>
				<label for="title" class="control-label">영화 선택</label>
				<select class="form-control" id="title" name="title" title="등록할 영화를 선택하세요" required="required">
					<option value="n">영화 선택</option>
					<c:forEach var="m" items="${ movie_list }">
						<option value="${ m.movno }">${ m.title }</option>
					</c:forEach>
				</select>
			</div>
			<div>
				<label for="cinema" class="control-label">영화관 선택</label>
				<select class="form-control" id="cinema-l" name="cinema-l" title="등록할 영화관 지역을 선택하세요" required="required">
					<option value="n">지역 선택</option>
					<c:forEach var="cl" items="${ cine_location }" varStatus="s">
						<option>${ cl.cineaddr }</option>
					</c:forEach>
				</select>
				<select class="form-control" id="cinename" name="cinename" title="등록할 영화관을 선택하세요" required="required">
					<option value="n">영화관 선택</option>
				</select>
			</div>
			<div class="clear">
				<label for="playdate" class="control-label">상영날짜</label>
				<input type="text" id="playdate" class="form-control" name="playdate"
					placeholder="상영날짜 선택" title="상영날짜를 선택하세요" required="required" />
			</div>
			<div>
				<label for="shtime" class="control-label">상영시간</label>
				<input type="text" class="form-control" id="shtime-h" name="shtime-h"
						placeholder="hh" title="상영시간을 입력하세요"  required="required" /><label for="shtime-h" class="shtime">시</label>
				<input type="text" class="form-control" id="shtime-m" name="shtime-m"
						placeholder="mm" title="상영시간을 입력하세요"  required="required" /><label for="shtime-m" class="shtime">분</label>
			</div>
			<div class="clear">
				<button type="button" class="btn btn-info" id="addbtn">추가</button>
			</div>
		</div>
		<div id="shlist">
			<div id="shlist-table">
				<table class="table table-hover">
					<colgroup>
						<col width="5%" />
						<col width="40%" />
						<col width="20%" />
						<col />
						<col />
						<col width="10%" />
					</colgroup>
					<thead>
						<tr class="warning"><th></th><th>영화 제목</th><th>상영관</th><th>상영날짜</th><th>상영시간</th><th></th></tr>
					</thead>
					<tbody id="shinfo-tbody">
						
					</tbody>
				</table>
				
				<div id="hinfo">
				</div>
				
			</div>
			<div id="btn">
				<label class="control-label"></label>
				<input type="hidden" name="showinginfo" id="showinginfo" />
						
				<button type="submit" id="okbtn" class="btn btn-primary" disabled="disabled">등 록</button>
				<button type="reset" id="rsbtn" class="btn btn-default">다시입력</button>
			</div>
		</div>
	</fieldset>
</form>
</div>
<script src="js/datepicker.js"></script>
<script src="js/admin-showing-ajax.js"></script>